package cn.itcast.ssh.dao.impl;

import cn.itcast.ssh.dao.IApproveInfoDao;
import cn.itcast.ssh.domain.ApproveInfo;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

/**
 * @author xiongshiyan at 2021/3/16 , contact me with email yanshixiong@126.com or phone 15208384257
 */
public class ApproveInfoDaoImpl extends HibernateDaoSupport implements IApproveInfoDao {
    @Override
    public void save(ApproveInfo approveInfo) {
        getHibernateTemplate().save(approveInfo);
    }

    @Override
    public ApproveInfo getById(Long id) {
        return getHibernateTemplate().get(ApproveInfo.class, id);
    }
}
